#
# Copyright (c) NVIDIA CORPORATION & AFFILIATES, 2001-2021. ALL RIGHTS RESERVED.
# Copyright (c) UT-Battelle, LLC. 2014-2017. ALL RIGHTS RESERVED.
# Copyright (c) The University of Tennesse and the University of Tennessee
#               Research Foundation. 2016.  ALL RIGHTS RESERVED.
# Copyright (C) Intel Corporation, 2023. ALL RIGHTS RESERVED.
# See file LICENSE for terms.
#

SUBDIRS = . cuda ib rocm sm ugni ze

lib_LTLIBRARIES    = libuct.la
libuct_la_CFLAGS   = $(BASE_CFLAGS) $(LT_CFLAGS)
libuct_la_CPPFLAGS = $(BASE_CPPFLAGS)
libuct_la_LIBADD   = $(top_builddir)/src/ucs/libucs.la
libuct_la_LDFLAGS  = -ldl -version-info $(SOVERSION)
libuct_ladir       = $(includedir)/uct

nobase_dist_libuct_la_HEADERS = \
	api/tl.h \
	api/uct_def.h \
	api/uct.h \
	api/version.h

noinst_HEADERS = \
	base/uct_md.h \
	base/uct_component.h \
	base/uct_iface.h \
	base/uct_log.h \
	base/uct_worker.h \
	base/uct_cm.h \
	base/uct_iov.inl \
	base/uct_vfs_attr.h \
	sm/base/sm_ep.h \
	sm/base/sm_md.h \
	sm/base/sm_iface.h \
	sm/mm/base/mm_iface.h \
	sm/mm/base/mm_ep.h \
	sm/mm/base/mm_md.h \
	sm/scopy/base/scopy_iface.h \
	sm/scopy/base/scopy_ep.h \
	sm/self/self.h \
	tcp/tcp_base.h \
	tcp/tcp.h \
	tcp/tcp_sockcm.h \
	tcp/tcp_listener.h \
	tcp/tcp_sockcm_ep.h


libuct_la_SOURCES = \
	base/uct_md.c \
	base/uct_md_vfs.c \
	base/uct_mem.c \
	base/uct_component.c \
	base/uct_iface.c \
	base/uct_iface_vfs.c \
	base/uct_worker.c \
	base/uct_cm.c \
	base/uct_vfs_attr.c \
	sm/base/sm_ep.c \
	sm/base/sm_md.c \
	sm/base/sm_iface.c \
	sm/mm/base/mm_iface.c \
	sm/mm/base/mm_ep.c \
	sm/mm/base/mm_md.c \
	sm/mm/posix/mm_posix.c \
	sm/mm/sysv/mm_sysv.c \
	sm/scopy/base/scopy_iface.c \
	sm/scopy/base/scopy_ep.c \
	sm/self/self.c \
	tcp/tcp_ep.c \
	tcp/tcp_iface.c \
	tcp/tcp_md.c \
	tcp/tcp_net.c \
	tcp/tcp_cm.c \
	tcp/tcp_base.c \
	tcp/tcp_sockcm.c \
	tcp/tcp_listener.c \
	tcp/tcp_sockcm_ep.c

PKG_CONFIG_NAME=uct

include $(top_srcdir)/config/module-pkg-config.am
